Skip to content

Support .NET 10 and .NET 11 RC3 in one tool package - #550

Merged
jongalloway merged 2 commits into
mainfrom
jongalloway-net11-rc3-compatibility
Nov 2, 2026
Merged

jongalloway merged 2 commits into
mainfrom
jongalloway-net11-rc3-compatibility

Conversation

@jongalloway

Copy link
Copy Markdown
Owner

Prepare the server for .NET 11 GA without dropping .NET 10-only users. Ship one dual-targeted package with the existing MCP tool surface on both runtimes, and preserve the RC3-built artifact for later GA-only verification.

Relates to #541

Approach

  • Target net10.0;net11.0 in the server and tests. Retain the .NET 10 dependency set and use RC3 Template Engine and Hosting dependencies on .NET 11.
  • Pin source builds to SDK 11.0.100-rc.3.26522.148 and explicitly use RollForward=Minor. The generated .NET 11 runtime floor is RC3; crossing a runtime major version is not required for RC3-to-GA.
  • Add Microsoft's public dotnet-tools feed for the NuGet 8 RC dependencies that are not yet published on NuGet.org. Those dependencies are bundled in the tool, so consumer installations do not need the feed.
  • Add packaged-tool compatibility checks and Windows/Linux CI coverage for .NET 10-only, RC3-only, and side-by-side installations. Assert actual tool assets and runtime selection using host traces, and exercise a .NET 10 SDK-pinned project from the .NET 11 server.
  • Update build/release workflows, preserve both coverage reports, allow bounded cold-start discovery in stdio tests, and document installation requirements and explicit source-run framework selection.

Validation

  • Release builds succeeded for both targets without warnings or errors.
  • Complete dual-target test run: 3,504 passed, 92 opt-in tests skipped, 0 failed.
  • The same final package passed both dnx and dotnet tool install --tool-path checks in three isolated Windows environments: .NET 10-only, RC3-only, and side-by-side. Each invocation initialized MCP, discovered tools/templates, and created, analyzed, and built a representative project. Neither invocation needed --allow-roll-forward.
  • Modified workflows passed actionlint. Generated runtimeconfigs, package metadata, and the packaged MCP registry manifest were validated.

Pending GA acceptance

GA-only execution has not been verified. The compatibility workflow retains the RC3 package and accepts rc3_run_id to download and exercise an existing artifact on GA without rebuilding it or installing RC3. This PR intentionally uses a non-closing issue reference until that acceptance criterion is satisfied. Linux compatibility execution is configured in CI; the local packaged-tool runs were on Windows.

Build both targets with the pinned RC3 SDK, isolate SDK integration dependencies, and verify packaged tool selection and same-major roll-forward. Add compatibility CI and document the pending GA-only check.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 2, 2026 02:24

Copilot AI commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

One or more custom setup steps configured for this repository failed during this Copilot code review run:

Restore dependencies

Setup steps run before each review. If the review above is missing context, or no review was posted at all, the failing step above may be the cause. See the workflow run for failure details, fix your setup steps configuration, and re-request a review.

Note

You can configure setup steps for Copilot code review separately from Copilot cloud agent with a copilot-code-review.yml file. Read the docs for details.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The preserved RC3-built package still requires .NET 11 GA-only execution, and runtime/tool-asset selection remains unconfirmed across the Windows/Linux packaged compatibility matrix.

No open issues 🎉

What changed in this PR

This PR prepares the MCP server for .NET 11 while preserving .NET 10-only support in one dual-targeted tool package. It advances #541 and preserves the RC3-built artifact for later GA-only verification, which remains pending.

Changes:

  • Dual-targets the server and tests, pins the RC3 build SDK, and separates framework-specific dependencies.
  • Adds Windows/Linux packaged-tool compatibility checks for runtime selection and representative project operations.
  • Updates CI, preserves both coverage reports, and documents installation and source-run requirements.
File Description
scripts/​test-tool-compatibility.ps1 Validates packaged assets, runtime selection, and MCP project operations.
README.md Documents dual-runtime support and installation requirements.
NuGet.Config Adds the public feed needed for RC3 build dependencies.
global.json Pins source builds to the exact RC3 SDK.
DotNetMcp/​DotNetMcp.csproj Dual-targets the server with target-specific dependencies and explicit roll-forward.
DotNetMcp.Tests/​Server/​McpConformanceTests.cs Allows bounded cold-start discovery.
DotNetMcp.Tests/​Server/​McpAppsMetaWireFormatTest.cs Adds a discovery timeout and test cancellation.
DotNetMcp.Tests/​Scenarios/​McpScenarioClient.cs Allows bounded cold-start discovery for scenarios.
DotNetMcp.Tests/​DotNetMcp.Tests.csproj Dual-targets tests and selects matching logging dependencies.
doc/​testing.md Documents dual-target tests, coverage, and packaged compatibility checks.
doc/​telemetry.md Adds explicit framework selection to source-run guidance.
doc/​sdk-integration.md Explains target-specific SDK integration dependencies.
doc/​releasing.md Corrects the build command and notes dual-target builds.
.github/​workflows/​tool-compatibility.yml Adds isolated compatibility jobs and preserved-artifact GA verification.
.github/​workflows/​release-scenarios.yml Installs the pinned SDK alongside .NET 10.
.github/​workflows/​publish-nuget.yml Installs the pinned SDK for publishing.
.github/​workflows/​copilot-setup-steps.yml Installs the pinned SDK for development setup.
.github/​workflows/​codeql.yml Installs the pinned SDK for code analysis.
.github/​workflows/​build.yml Uses the pinned SDK and preserves both coverage reports.
.github/​copilot-instructions.md Updates dual-target development and compatibility guidance.

Review effort: Balanced

Keep existing test selectors, coverage options and both target frameworks while avoiding the pinned SDK's project-discovery regression.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@jongalloway
jongalloway merged commit 707ab61 into main Nov 2, 2026
16 checks passed
@jongalloway
jongalloway deleted the jongalloway-net11-rc3-compatibility branch November 2, 2026 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants